<%@ page import="java.util.*, javax.sql.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
	<head>
		<title><bean:message key="student.title" /></title>
		<bean:define id="first" name="fname" />
		<bean:define id="middle" name="mname" />
		<bean:define id="last" name="lname" />
		<bean:define id="citizen" name="citizen" />
		<bean:define id="residence" name="residence" />
		<bean:define id="address" name="address" />
		<bean:define id="city" name="city" />
		<bean:define id="zip_code" name="zip_code" />
		<bean:define id="area_code" name="area_code" />
		<bean:define id="telephone" name="telephone" />
		<bean:define id="residency" name="residency" />
		<html:base />
		<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>
	</head>
<body>
	<p class="sansserif">
	<div class="container">
	<div class="center_div">
		<!-- in case validation of the entry data fails in the data bean -->
		<html:errors />
		
		<table>
		<tr>
			<td><b><bean:message key="student.header" /></b></td>
			<td></td><td></td><td></td>
			<td><a href="../invalidate.jsp">Logout</a></td>
		</tr>
		<tr>
		</tr>
		</table>
		<ul class="none">
			<li>
				Applicant Name: 
					<bean:write name="first"/>
					<bean:write name="middle"/>
					<bean:write name="last"/>
			</li>
			<li>Citizenship: <bean:write name="citizen"/></li>
			<li>Residence: <bean:write name="residence"/></li>
			<li>Address: 
				<bean:write name="address"/> <bean:write name="city"/>
				<bean:write name="zip_code"/>
			</li>
			<li>Telephone: <bean:write name="area_code"/> 
							<bean:write name="telephone"/></li>
			<li>Residency: <bean:write name="residency"/></li>
		</ul>
		
		<p><b><bean:message key="student.discipline.title" /></b></p>
		<br>
		<html:form action="/uploadFile">
			<table>
			<%
				Vector discips = (Vector)session.getAttribute("disciplines");
			%>
			<logic:iterate id="discipline" name="disciplines" indexId="counter">
				<tr>
					<td>
						<html:radio property="major" value="<%= (String)discips.get(counter) %>" disabled="false"/>
						<bean:write name="discipline"/>
					</td>
				</tr>
			</logic:iterate>
			</table>
			<ul class="none">
				<li>
					Other <html:text property="major" size="21" />
				</li>
				<li>
					Month <html:text property="month" size="2" />
					Year <html:text property="year" size="3" />
				</li>
				<li>GPA or Expected GPA <html:text property="gpa" size="2" /></li>
				<li>
					Title
					<html:select property="title">
						<html:option value="BS"></html:option>
						<html:option value="MS"></html:option>
						<html:option value="PHD"></html:option>
					</html:select>
				</li>
			</ul>
		<html:submit value="Submit" />
		</html:form>	
	</div>
	</div>
</body>
</html:html>